/**
 * @Project Name:cn.hoofungson.studio
 * @Package Name:cn.hoofungson.spring.security.demo.controller
 * @Since JDK 1.8
 */
package cn.hoofungson.spring.security.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: 主页控制器
 * @Author 胡松 hoofungson@163.com
 * @Date 2017-11-09 14:51
 * @Version V1.0
 */
@Controller
public class HomeController {

    @GetMapping({"/", "/index", "/home"})
    @ResponseBody
    public String root(){
        return "index";
    }

    @GetMapping("/login")
    @ResponseBody
    public String login(){
        return "login";
    }
}
